package com.dingyang.controller;

import com.dingyang.controller.base.BaseController;
import com.dingyang.entity.OrdinaryUsers;
import com.dingyang.service.OrdinaryUsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 晚点再动心
 * @Date 2022/8/29
 */
@RestController
@RequestMapping("/ordinary_users")
public class OrdinaryUsersController extends BaseController<OrdinaryUsers, OrdinaryUsersService> {

    /**
     *普通用户对象
     */
    @Autowired
    public OrdinaryUsersController(OrdinaryUsersService service) {
        setService(service);
    }

    //@PostMapping("/add")
    //@Transactional
    //public Map<String, Object> add(HttpServletRequest request) throws IOException {
    //    Map<String,Object> paramMap = service.readBody(request.getReader());
    //    this.addMap(paramMap);
    //    return success(1);
    //}

}